package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface PermissionDao {

    @Select("SELECT * FROM  t_permission WHERE id IN (SELECT permission_id FROM t_role_permission WHERE role_id=#{roleId})")
    Set<Permission> findByRoleId(Integer roleId);
}
